package com.bajiao.entity.user;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 用户优惠券表
 * @Author: FanJq
 * @Date:   2024-12-13
 * @Version: V1.0
 */
@Data
@TableName("tb_user_coupon")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="tb_user_coupon对象", description="用户优惠券表")
public class UserCoupon {

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键", required = true, position = 0)
	private String id;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id", required = true, position = 10)
	private String userId;
	/**优惠券id*/
	@Excel(name = "优惠券id", width = 15)
    @ApiModelProperty(value = "优惠券id", required = true, position = 20)
	private String couponId;
	/**优惠券名称*/
	@Excel(name = "优惠券名称", width = 15)
    @ApiModelProperty(value = "优惠券名称", required = true, position = 30)
	private String title;
	/**领取时间*/
	@Excel(name = "领取时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "领取时间", required = true, position = 40)
	private Date receiveTime;
	/**失效时间*/
	@Excel(name = "失效时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "失效时间", required = true, position = 50)
	private Date expireTime;
	/**状态 0-失效 1-可用 2-已使用*/
	@Excel(name = "状态 0-失效 1-可用 2-已使用 3-已核销", width = 15)
    @ApiModelProperty(value = "状态 0-失效 1-可用 2-已使用 3-已核销", required = true, position = 60)
	private Integer status;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true, position = 70)
	private Date createTime;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间", required = true, position = 80)
	private Date updateTime;
	/**范围 1-平台 2-商家专属*/
	@Excel(name = "范围 1-平台 2-商家专属", width = 15)
    @ApiModelProperty(value = "范围 1-平台 2-商家专属", required = true, position = 90)
	private Integer scope;
	/**类型 1-折扣券 2-抵扣券*/
	@Excel(name = "类型 1-折扣券 2-抵扣券", width = 15)
    @ApiModelProperty(value = "类型 1-折扣券 2-抵扣券", required = true, position = 100)
	private Integer type;
	/**面额*/
	@Excel(name = "面额", width = 15)
    @ApiModelProperty(value = "面额", required = true, position = 110)
	private java.math.BigDecimal quota;
	/**所属店铺id*/
	@Excel(name = "所属店铺id", width = 15)
    @ApiModelProperty(value = "所属店铺id", required = true, position = 120)
	private String storeId;
	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号", required = true, position = 130)
	private String orderNo;
	/**核销码*/
	@Excel(name = "核销码", width = 15)
    @ApiModelProperty(value = "核销码", required = true, position = 140)
	private String verifyCode;
	/**核销时间*/
	@Excel(name = "核销时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "核销时间", required = true, position = 150)
	private Date verifyTime;

	@ApiModelProperty(value = "优惠券介绍")
	@TableField(exist = false)
	private String intro;
}
